﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" EnableEventValidation="false"
    ValidateRequest="false" AutoEventWireup="true" CodeFile="PurchaseAdd.aspx.cs"
    Inherits="member_Trade_Purchase" Title="求购信息" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="server">

    <script type="text/javascript" language="javascript">
     function  textValue(){
          var   c=document.all('ctl00_ContInfo_dropUnit');  
          var danwei=c.options[c.selectedIndex].value;
          ctl00_ContInfo_danwei.innerHTML="元/"+danwei;
          ctl00_ContInfo_gonghuo.innerHTML=danwei;     
      }   
    </script>

    <script type="text/javascript" src="../../js/calendar.js"></script>

    <script type="text/javascript" src="../../js/Industry.js"></script>
    <div id="sub_content">  
    <form id="form1" action="">
            <asp:HiddenField ID="txtSortB" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtSortM" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtSortS" runat="server"></asp:HiddenField>
            <div class="pagetitle" id="DIV1" runat="server">
                发布求购信息</div>    
            <div class="tishi">
                <div class="tishi_title">
                    <span id="Htab_on2" onclick="document.getElementById('important_note').style.display=='block'||document.getElementById('important_note').style.display==''?document.getElementById('important_note').style.display='none':document.getElementById('important_note').style.display='block'; document.getElementById('Htab_on2').className=='Htab_on2'?document.getElementById('Htab_on2').className='Htab_off2':document.getElementById('Htab_on2').className='Htab_on2'"
                        style="cursor: hand">重要提醒</span>
                </div>
                <p id="important_note" style="margin: 10px;">
                    为了让买家能更精确找到您的产品，您可以做以下几步提高您的信息精度，获得更好的排名：<br />
                    1、一条信息只发布一个产品； 2、选择与您产品符合的类目。<br />
                    3、发布的信息带图且填写产品属性。<br />
                    4、为了提高信息质量，请您注意不要发布重复信息，重复信息将无法成功发布！
                </p>
                <div class="clr">
                </div>
            </div>
            <asp:Label ID="lblMessage" runat="server" Visible="false" ForeColor="red"></asp:Label>
            <div class="h2_title">
                <div style="float: right; padding: 3px 5px 0;">
                    <span class="red">*</span>为必填项</div>
                <h2>
                    基本信息</h2>
            </div>
            <a name="flagKeyword"></a>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                <tr>
                    <td width="16%" class="thing">
                        产品名称：<span>*</span></td>
                    <td class="td_c">
                        <span>
                            <asp:TextBox MaxLength="20" ID="txtName" runat="server" Width="200px">
                            </asp:TextBox></span>
                        <div id="txt0">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        产品关键字：<span class="red">*</span></td>
                    <td class="td_c">
                        <span>
                            <asp:TextBox ID="txtKey" MaxLength="16" runat="server" Width="200px">
                            </asp:TextBox></span><div id="txt1">
                            </div>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        产品所属类目：<span class="red">*</span></td>
                    <td class="td_c">
                        <span>
                            <select id="SortB" name="SortB" runat="server" size="8" style="width: 132px">
                            </select>
                            <select id="SortM" name="SortM" runat="server" size="8" style="width: 132px">
                            </select>
                            <select id="SortS" name="SortS" runat="server" size="8" style="width: 132px">
                            </select>
                        </span>
                        <div id="txt10">
                        </div>
                    </td>
                </tr>
                <tr>
                    <a name="xiangxi"></a>
                    <td class="thing">
                        有效期：<span class="red">*</span>
                    </td>
                    <td class="td_c">
                        <span>
                            <asp:RadioButtonList ID="RadioTime" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="10">10天</asp:ListItem>
                                <asp:ListItem Value="20">20天</asp:ListItem>
                                <asp:ListItem Value="30">1个月</asp:ListItem>
                                <asp:ListItem Value="90">3个月</asp:ListItem>
                                <asp:ListItem Selected="True" Value="180">6个月</asp:ListItem>
                            </asp:RadioButtonList>
                        </span>
                        <div id="txt20">
                        </div>
                        <div id="txt30">
                        </div>
                    </td>
                </tr>
            </table>
            <div class="h2_title mop">
                <h2>
                    详细信息</h2>
            </div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                <tr>
                    <td class="thing">
                        包装说明：
                    </td>
                    <td class="td_c">
                        <span>
                            <asp:TextBox MaxLength="30" ID="txtBrand" runat="server" Width="133px"></asp:TextBox></span>
                        <div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        产品规格：</td>
                    <td class="td_c">
                        <span>
                            <asp:TextBox MaxLength="30" ID="txtModel" runat="server" Width="131px"></asp:TextBox></span>
                        <div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        详细说明：
                    </td>
                    <td align="left" style="height: 24px" class="td_c">
                        <FCKeditorV2:FCKeditor ID="txtContent" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="400" Width="680">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        产品图片：
                    </td>
                    <td class="td_c">
                        <asp:HiddenField ID="ImgUrl1" runat="server" />
                        <a href="" id="txturldz" target="_blank">
                            <img border="0" src="../../Images/System/wutu.gif" id="ImgUrl" name="ImgUrl" alt=""
                                runat="server" style="width: 106px; height: 95px" /></a><br />
                        <input id="txtupload" type="button" value="上传" onclick="return rowTest()" /><br />
                        <div id="rowTest" style="display: none">
                            <iframe name="tag" src="../Tool/Upload.html" style="width: 550px; height: 120px"
                                frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                            </iframe>
                        </div>
                    </td>
                </tr>
            </table>
            <div class="h2_title mop">
                <div style="float: right; padding-top: 3px; padding-right: 5px;">
                    建议详细填写交易条件，否则买家无法为您的产品下订单</div>
                <h2>
                    交易条件</h2>
            </div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                <tr>
                    <td class="thing">
                        计量单位：
                    </td>
                    <td class="td_c" width="88%">
                        <span>
                            <asp:DropDownList ID="dropUnit" runat="server" onchange="textValue();">
                            </asp:DropDownList></span>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        需求数量：
                    </td>
                    <td class="td_c">
                        <span>
                            <asp:TextBox onkeyup="if(event.keyCode!=37&&event.keyCode!=39)value=value.replace(/\D/g,'');" ID="txtCount" runat="server" Width="75px" MaxLength="7" Text="10"></asp:TextBox></span>
                        <div id="gonghuo" runat="server">
                            包
                        </div>
                        <div id="txt4" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="thing">
                        产品单价：
                    </td>
                    <td class="td_c">
                    <div style=" float:left; overflow:hidden; margin-right:20px;">
                        <span>
                            <asp:TextBox ID="txtPrice" runat="server" Width="75px" MaxLength="7" Text="1"></asp:TextBox></span>
                        <div id="danwei" runat="server">
                            元/包</div></div>
                        <div id="txt5" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
            </table>
            <div class="h2_title mop">
                <div style="float: right; padding-top: 3px; padding-right: 5px;">
                    若有误,您发布的信息将无法通过审核,<a target="_blank" href="../UserInfo/LinkManInfo.aspx" style="color: Red;
                        text-decoration: underline">点此修改</a></div>
                <h2>
                    联系方式的确认与修改</h2>
            </div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                <tr>
                    <td width="13%" class="thing">
                        姓名：</td>
                    <td class="td_c">
                        <asp:Label ID="UserName" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="thing">
                        电话：</td>
                    <td class="td_c">
                        <asp:Label ID="UserTelephone" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="thing">
                        QQ：</td>
                    <td class="td_c">
                        <asp:Label ID="UserChuanzhen" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="thing">
                        公司名称：</td>
                    <td class="td_c">
                        <asp:Label ID="CompanyName" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td class="thing">
                        Email：</td>
                    <td class="td_c">
                        <asp:Label ID="Email" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="height: 45px; border-bottom: 1px #CCCCCC solid;">
                        <asp:Button ID="btnSave" runat="server" Style="cursor: hand" Text="同意服务条款，我要发布" OnClick="btnSave_Click"
                            CssClass="i_button" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
    <script language="javascript" type="text/javascript">
	   setup(1);
    </script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript" src="../js/Purchase.js"></script>

</asp:Content>
